﻿using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

// Token: 0x02000002 RID: 2
public class AchievButton : MonoBehaviour
{
	// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
	private void Start()
	{
		base.GetComponent<Button>().onClick.AddListener(new UnityAction(this.Clicked));
	}

	// Token: 0x06000002 RID: 2 RVA: 0x0000206E File Offset: 0x0000026E
	public void Clicked()
	{
		PauseManager.main.SetAchievementText(this.description, base.GetComponent<RectTransform>().anchoredPosition.y);
	}

	// Token: 0x04000001 RID: 1
	public string description;
}
